"""JobProject URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin

import PublicUserManage.views as PubliscUMField
import GoodTools.views as ToolsField
import JobData.views as JobField
import PolicyData.views as PolicyField
import PublicFeedback.views as PublicFeedbackField
import AdminManagement.views as Admin
import AdminShowChat.views as AdminSCField
import ReckonJob.views as ReckonField
import AdminTargetManage.views as AdminTMField
import UserEstablishChart.views as UserECField
import AdminUserManage.views as AdminUMField
import AdminTargetWebsite.views as AdminTWField
import PublicUserManage.views as PublicUM
import AdminEstablishChart.views as AdminECField
import PublicChartDisplay.views as PublicCDField
import JobData.views as PublicJDField

urlpatterns = [


    url(r'^django/', admin.site.urls),

    #包含对应菜单的所有的url映射
    #每个菜单下所有菜单页面内的链接url映射都被缩进在它的上一级映射下
    #没听懂就对了，看看代码就明白了


    #0.首页
    # url(r'', index_html),
    #   当只有地址和端口号时跳转至主页，感觉关闭比较好
    url(r'^index/$' , PubliscUMField.index),
    url(r'^zfq/$' , PubliscUMField.index),

    #1.个人空间
    url(r'^zfq/login/$',PubliscUMField.login_html),
    url(r'^index/myMeg/user/$',PubliscUMField.user),
    url(r'^index/login/$',PubliscUMField.login),
    url(r'^index/register/$' , PubliscUMField.register),
    url(r'^logout/',PubliscUMField.logout),



    #1.2 后台信息管理
    # 目标网站管理
    url(r'^zfq/admin/indexAdmin/$', Admin.index),
    url(r'^zfq/admin/targetManage/$',AdminTWField.TargetWebsite),
        #规则设置
        url(r'^zfq/admin/gainRule/$', AdminTMField.GainRule),
            # #拉钩网
            # url(r'^zfq/admin/gainRule/reRule-lagou/$', AdminTMField.reRule_lagou),
            # #拉钩网
            # url(r'^zfq/admin/gainRule/reRule-51job/$', AdminTMField.reRule_51job),
        url(r'^zfq/admin/gainRule/reRule-data/$', AdminTMField.reRule_return.as_view()),
    url(r'^zfq/admin/TurnOn/$', AdminTMField.TurnOn),
    #数据图表制作
    url(r'^zfq/admin/EstablishChart/$',AdminECField.showPage),
    #图表信息管理
    url(r'^zfq/admin/ChartDisplay/CSMapping/$', PublicCDField.mappingCS),
    url(r'^return/admin/ChartDisplay/form/$', PublicCDField.mappingCS),
    url(r'^zfq/admin/ChartDisplay/$',PublicCDField.gocharDisplay),
    url(r'^return/admin/ChartDisplay/table/$',PublicCDField.returnTable),
    url(r'^return/admin/ChartDisplay/upload/$', PublicCDField.returnUpload),
    # 网站数据详细信息

    url(r'^zfq/admin/WebDataChart/Zhilian/$',AdminSCField.Zhilian),
    url(r'^admin/jobMessageAdmin/$',Admin.jobMessage),
    url(r'^admin/DataChart/$',Admin.DataChart),
    url(r'^admin/DataDetails/$',Admin.DataDetails),
    url(r'^admin/DataDetails/content/$',Admin.DataDetails),
            url(r'^zfq/admin/DataDetails/$',PublicJDField.showPage),
            url(r'^return/admin/DataDetails/$',PublicJDField.getallData),
            url(r'^zfq/admin/DataDetails/51j/$',Admin.DataDetails_51j),
            url(r'^zfq/admin/DataDetails/xiaom/$', Admin.DataDetails_xiaom),
            url(r'^zfq/admin/DataDetails/zhil/$', Admin.DataDetails_zhil),
            url(r'^zfq/admin/DataDetails/lag/$', Admin.DataDetails_lag),
    url(r'^zfq/admin/UserManage/usrInfor/$',PublicUM.userInfor),
    url(r'^zfq/admin/UserManage/usrInforInto/$',PublicUM.userInforInto),
            #layui
            url(r'^admin/AdminLay/$', Admin.AdminLay , name="AdminLay"),



    #2.在线工具
    url(r'^index/tools/everyDay/$', ToolsField.everyDay),
    url(r'^system/tools/Fookie/$', ToolsField.useFookie),
    url(r'^system/tools/Fession/$', ToolsField.useFession),
    #3.最新数据
    url(r'^zfq/ExhibitChart/Entire$' , PublicCDField.new_showChart_entire),
    # url(r'^index/showData/school/$' , PublicCDField.showData_school),
    # url(r'^index/showData/society/$' , PublicCDField.showData_society),
    # url(r'^index/showData/all/$' , PublicCDField.showData_all),
            url(r'^index/showData/showChoice', PublicCDField.details),
            url(r'^index/showData/all/details/$', PublicCDField.details),
    # url(r'^index/showData/policy/$' , PublicCDField.showData_policy),

    #EstablishChart
    url(r'^zfq/EstablishChart/$',UserECField.establishChart),
    url(r'^system/EstablishChart/$', UserECField.establishChart),
    #Reckon Job
    url(r'^zfq/ReckonJob/$',ReckonField.reckon),
    url(r'hide/ReckonJob/ReturnPick',ReckonField.get_job_position),
    url(r'hide/ReckonJob/Details',ReckonField.toDetail),

    #4.就业分析
    url(r'^index/analysis/school/$' , PublicCDField.analysis_school),
    url(r'^index/analysis/society/$' , PublicCDField.analysis_society),
    url(r'^index/analysis/all/$' , PublicCDField.analysis_all),
            url(r'^index/analysis/send' , PublicCDField.analysis_all),
            url(r'^index/analysis/send/$' , PublicCDField.analysis_all),
    url(r'^index/analysis/other/$' , PublicCDField.analysis_school),

    #5.就业政策
    url(r'^index/policy/$' , PolicyField.policy),
            url(r'^index/policy/send' , PolicyField.policy),
            url(r'^index/policy/send/$' , PolicyField.policy),

    #6.联系我们
    url(r'^zfq/contact/',PublicFeedbackField.contact),
            url(r'^zfq/contact/send/',PublicFeedbackField.contact),


    #测试页
    url(r'^Job/', PublicFeedbackField.sayHello),
    url(r'^record/', PublicFeedbackField.record),
    url(r'^index/testPage/', PublicFeedbackField.testPage),
    url(r'^charttest/$',PublicFeedbackField.testChart),


    #异步加载
        #天气和用户
    url(r'^returnFun',PubliscUMField.returnFun),
        #路径
    url(r'^returnPath',PubliscUMField.returnPath),
    #url(r'^static/(?P<path>.*)$', static.serve,{'document_root': settings.STATIC_ROOT} , name='static'),

    #大创开业链接
    url(r'^index/1/$',PublicCDField.index1),
    url(r'^index/2',PublicCDField.index2),
    url(r'^index/3',PublicCDField.index3),
    url(r'^index/4',PublicCDField.index4),
    url(r'^index/5', PublicCDField.index5),
    url(r'^index/1/2',PublicCDField.index1_2),
    url(r'^index/1/3',PublicCDField.index1_3),
    url(r'^index/1/4',PublicCDField.index1_4),






]#+ static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
